<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.Enumeration" %>
<%@ page import="com.yjd.comm.util.ServletUtil" %>
<%@ page import="com.yjd.comm.util.FrameUtil" %>
<html>
<head>
    <title>医美分期</title>
</head>
<body>
<%
    response.getWriter().write("<div>header：</div>");
    Map<String, Object> headerMap = FrameUtil.newLinkedHashMap();
    Enumeration<String> headerNames = request.getHeaderNames();
    while (headerNames.hasMoreElements()) {
        String key = headerNames.nextElement();
        headerMap.put(key, request.getHeader(key));
    }
    response.getWriter().write("<div><pre>" + FrameUtil.json(headerMap, true) + "</pre></div>");
    response.getWriter().write("<br/><br/><br/><br/>");
    response.getWriter().write("<div>ip地址为：" + ServletUtil.getIpAddr(request) + "<div>");
%>
</body>
</html>